package licode.unisop.types.dp;

import org.springframework.util.Assert;

public class PageLimit {

    private final long limit;

    public PageLimit(long limit) {
        Assert.isTrue(limit > 0, "每页记录条数必须大于0：" + limit);
        this.limit = limit;
    }

    public long getLimit() {
        return limit;
    }

    @Override
    public String toString() {
        return limit + "";
    }
}
